/*
 * Created by SharpDevelop.
 * User: rkeeter
 * Date: 6/19/2008
 * Time: 2:00 PM
 * 
 * To change this template use Tools | Options | Coding | Edit Standard Headers.
 */
using System;
using System.Collections.Generic;
using MagicApp.Data;
using MagicApp.Services;
using NUnit.Framework;


namespace MagicApp.Testing
{
	/// <summary>
	/// Description of MyClass.
	/// </summary>
	[TestFixture]
	public class GameServiceTests
	{
		[Obsolete]
        public void GetTopCardFromGraveyard_retrieves_shivan_dragon()
        {
            IDeckEngine de = new DeckEngine(new DummyCardRepository());
            IGameService gs = new GameService(new DummyGameRepository());
            IGameEngine ge = new GameEngine(de, gs);
            User u1 = new User("ryan");
            User u2 = new User("matt");
            IList<User> users = new List<User> ();
            users.Add(u1);
            users.Add(u2);
            IList<Deck> decks = new List<Deck>();
            decks.Add(de.GetDeck("sammys"));
            decks.Add(de.GetDeck("sammys"));

            ge.CreateGame("monkeygame", users, decks);
            ge.PlayCardFromHand(u1, de.GetCurrentHand().ReturnRandomCardInHand());
            ge.SendCardToGraveyard(
                ge.GetCardsInPlayList.GetCardsInPlay()[ge.GetCardsInPlayList.GetCardsInPlay().Count - 1]);
            Card card = ge.GetTopCardFromGraveyard();
            Assert.AreEqual("shivan dragon",card.CardName,"should have been shivan dragon");
        }
        [Obsolete]
        public void AddCard_to_graveyard_should_increment_the_graveyard()
        {
            
        }


	}
}
